package 合并区间;

import java.util.Arrays;

/**
 * createTime: 2025/4/26 21:20
 * description:
 *
 * @author AirMan
 */
public class Tetst {
    public static void main(String[] args) {
        int[][] intervals = {{1, 3}, {2, 6}, {8, 10}, {16, 18}};

        Solution solution = new Solution();

        int[][] merge = solution.merge(intervals);

        for (int[] ints : merge) {
            System.out.println(Arrays.toString(ints) + " , ");
        }

    }
}
